package cn.itcast.mybatis.demo5;

public class OrderProxyTest {

	public static void main(String[] args) {
		OrderService service = new OrderServiceImpl();
		OrderProxy proxy = new OrderProxy(service);
		//通过代理类来产生我们OrderService的子类 ，通过子类来实现我们的代理
		OrderService orderServiceProxy = proxy.getOrderServiceProxy();
		orderServiceProxy.insertOrder();
	}
	
}
